package ar.com.ford.it.fullEconomics.persistence.dto;

import java.math.BigDecimal;
import java.sql.Timestamp;
import com.ford.it.persistence.PersistenceHelper;
import com.ford.it.persistence.PersistenceIndirection;


/**
 *  ###  Generado por Oracle TopLink Workbench 10.1.3.1.0 - Fri Oct 02 07:39:16 ACT 2009.  ###
 */

public class Teesp04Supply {

    /** Lazy-Load attribute */
    private PersistenceIndirection eesp04SupplyTvmCurrencyC = PersistenceHelper
            .newIndirection(null);

    /** Lazy-Load attribute */
    private PersistenceIndirection teesp01Part = PersistenceHelper
            .newIndirection(null);

    /** Lazy-Load attribute */
    private PersistenceIndirection teess01Supplier = PersistenceHelper
            .newIndirection(null);
    
    /** Lazy-Load attribute */
    private PersistenceIndirection eesp04PlantCodeC = PersistenceHelper
            .newIndirection(null);
    
    /** Lazy-Load attribute */
    private PersistenceIndirection teesx03Intflog = PersistenceHelper
    .newIndirection(null);
	
	
	
	private Timestamp eesp04CreateS;
	private String eesp04CreateUserC;
	private Timestamp eesp04LastUpdtS;
	private Timestamp eesp04LastUpdtTvmS;
	private String eesp04LastUpdtTvmUserC;
	private String eesp04LastUpdtUserC;
	private BigDecimal eesp04SupplySharePercentP;
	private BigDecimal eesp04SupplyTvmAmountA;

public Teesp04Supply() {
	super();
}

public Timestamp getEesp04CreateS() {
	return this.eesp04CreateS;
}

public String getEesp04CreateUserC() {
	return this.eesp04CreateUserC;
}

public Timestamp getEesp04LastUpdtS() {
	return this.eesp04LastUpdtS;
}

public Timestamp getEesp04LastUpdtTvmS() {
	return this.eesp04LastUpdtTvmS;
}

public String getEesp04LastUpdtTvmUserC() {
	return this.eesp04LastUpdtTvmUserC;
}

public String getEesp04LastUpdtUserC() {
	return this.eesp04LastUpdtUserC;
}

public String getEesp04PartBaseCodeC() {
	// Rellene el cuerpo del m\u00E9todo aqu\u00ED.
	return null;
}

public String getEesp04PartClassCodeC() {
	// Rellene el cuerpo del m\u00E9todo aqu\u00ED.
	return null;
}

public String getEesp04PartPrefixCodeC() {
	// Rellene el cuerpo del m\u00E9todo aqu\u00ED.
	return null;
}

public String getEesp04PartSuffixCodeC() {
	// Rellene el cuerpo del m\u00E9todo aqu\u00ED.
	return null;
}

public Teesg01Plant getEesp04PlantCodeC() {
	return (Teesg01Plant) this.eesp04PlantCodeC.getValue();
}

public String getEesp04SupplierClassCodeC() {
	// Rellene el cuerpo del m\u00E9todo aqu\u00ED.
	return null;
}

public String getEesp04SupplierCodeC() {
	// Rellene el cuerpo del m\u00E9todo aqu\u00ED.
	return null;
}

public BigDecimal getEesp04SupplySharePercentP() {
	//Requerimiento: Porcentaje de share de proveedor de pieza ( <2 implica cero , >= 98 implica 100%)
	BigDecimal ret= this.eesp04SupplySharePercentP;
	
	if (this.eesp04SupplySharePercentP.intValue() < 2)
	{
		ret = new BigDecimal(0);
	} else if (this.eesp04SupplySharePercentP.intValue() >= 98)
	{
		ret = new BigDecimal(100);
	}
	
	return ret;
}

public BigDecimal getEesp04SupplySharePercentPRound() {
	return this.eesp04SupplySharePercentP.setScale(2,BigDecimal.ROUND_HALF_DOWN);
}

public BigDecimal getEesp04SupplyTvmAmountA() {
	return this.eesp04SupplyTvmAmountA;
}

public Teesm01Currency getEesp04SupplyTvmCurrencyC() {
	return (Teesm01Currency) this.eesp04SupplyTvmCurrencyC.getValue();
}

protected Teesm01Currency getEesp04SupplyTvmCurrencyCHolder() {
	return (Teesm01Currency) this.eesp04SupplyTvmCurrencyC.getValue();
}

public Teesp01Part getTeesp01Part() {
	return (Teesp01Part) this.teesp01Part.getValue();
}

protected Teesp01Part getTeesp01PartHolder() {
	return (Teesp01Part) this.teesp01Part.getValue();
}

public Teess01Supplier getTeess01Supplier() {
	return (Teess01Supplier) this.teess01Supplier.getValue();
}

protected Teess01Supplier getTeess01SupplierHolder() {
	return (Teess01Supplier) this.teess01Supplier.getValue();
}

public Teesx03Intflog getTeesx03Intflog() {
	return (Teesx03Intflog) this.teesx03Intflog.getValue();
}

public void setEesp04CreateS(Timestamp eesp04CreateS) {
	this.eesp04CreateS = eesp04CreateS;
}

public void setEesp04CreateUserC(String eesp04CreateUserC) {
	this.eesp04CreateUserC = eesp04CreateUserC;
}

public void setEesp04LastUpdtS(Timestamp eesp04LastUpdtS) {
	this.eesp04LastUpdtS = eesp04LastUpdtS;
}

public void setEesp04LastUpdtTvmS(Timestamp eesp04LastUpdtTvmS) {
	this.eesp04LastUpdtTvmS = eesp04LastUpdtTvmS;
}

public void setEesp04LastUpdtTvmUserC(String eesp04LastUpdtTvmUserC) {
	this.eesp04LastUpdtTvmUserC = eesp04LastUpdtTvmUserC;
}

public void setEesp04LastUpdtUserC(String eesp04LastUpdtUserC) {
	this.eesp04LastUpdtUserC = eesp04LastUpdtUserC;
}

public void setEesp04PartBaseCodeC(String aString) {
	// Rellene el cuerpo del m\u00E9todo aqu\u00ED.
}

public void setEesp04PartClassCodeC(String aString) {
	// Rellene el cuerpo del m\u00E9todo aqu\u00ED.
}

public void setEesp04PartPrefixCodeC(String aString) {
	// Rellene el cuerpo del m\u00E9todo aqu\u00ED.
}

public void setEesp04PartSuffixCodeC(String aString) {
	// Rellene el cuerpo del m\u00E9todo aqu\u00ED.
}

public void setEesp04PlantCodeC(Teesg01Plant aeesp04PlantCodeC) {
	this.eesp04PlantCodeC.setValue(aeesp04PlantCodeC);
}

public void setEesp04SupplierClassCodeC(String aString) {
	// Rellene el cuerpo del m\u00E9todo aqu\u00ED.
}

public void setEesp04SupplierCodeC(String aString) {
	// Rellene el cuerpo del m\u00E9todo aqu\u00ED.
}

public void setEesp04SupplySharePercentP(BigDecimal eesp04SupplySharePercentP) {
	this.eesp04SupplySharePercentP = eesp04SupplySharePercentP;
}

public void setEesp04SupplyTvmAmountA(BigDecimal eesp04SupplyTvmAmountA) {
	this.eesp04SupplyTvmAmountA = eesp04SupplyTvmAmountA;
}

public void setEesp04SupplyTvmCurrencyC(Teesm01Currency aTeesm01Currency) {
	this.eesp04SupplyTvmCurrencyC.setValue(aTeesm01Currency);
}

protected void setEesp04SupplyTvmCurrencyCHolder(Teesm01Currency aeesp04SupplyTvmCurrencyC) {
	this.eesp04SupplyTvmCurrencyC.setValue(aeesp04SupplyTvmCurrencyC);
}

public void setTeesp01Part(Teesp01Part aTeesp01Part) {
	this.teesp01Part.setValue(aTeesp01Part);
}

protected void setTeesp01PartHolder(Teesp01Part ateesp01Part) {
	this.teesp01Part.setValue(ateesp01Part);
}

public void setTeess01Supplier(Teess01Supplier aTeess01Supplier) {
	this.teess01Supplier.setValue(aTeess01Supplier);
}

protected void setTeess01SupplierHolder(Teess01Supplier ateess01Supplier) {
	this.teess01Supplier.setValue(ateess01Supplier);
}

public void setTeesx03Intflog(Teesx03Intflog ateesx03Intflog) {
	this.teesx03Intflog.setValue(ateesx03Intflog);
}

}
